cmake_minimum_required(VERSION 3.15)

project(AdaLog)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

include_directories(include)

file(GLOB_RECURSE ADALOG_SOURCES_LIST CONFIGURE_DEPENDS "./src/*.cpp")

add_library(AdaLog ${ADALOG_SOURCES_LIST})
target_link_libraries(AdaLog pthread)

add_executable(test_LogFormatter "test/test_Logger.cpp")
target_link_libraries(test_LogFormatter PRIVATE AdaLog)
